package com.miplus.ccrm.core.service.action;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.miplus.ccrm.core.pojo.CpBatch;
import com.miplus.ccrm.core.pojo.CpCalllist;
import com.miplus.ccrm.core.service.action.CpBatchService;
import com.miplus.ccrm.core.mapper.CpBatchMapper;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
* @author wangzl
* @description 针对表【cp_batch】的数据库操作Service实现
* @createDate 2024-11-10 11:55:51
*/
@Service
public class CpBatchServiceImpl extends ServiceImpl<CpBatchMapper, CpBatch>
    implements CpBatchService{
    @Override

    public CpBatch createBatch(CpCalllist cpCalllist,Long ruleStepId)
    {
        CpBatch cpBatch = new CpBatch();
        cpBatch.setClid( cpCalllist.getClid());
        cpBatch.setName(cpCalllist.getName());
        cpBatch.setCrdt(new Date());
        cpBatch.setRuleStepId(ruleStepId);
        save(cpBatch);
        return cpBatch;
    }
}




